package com.exchange.mapper;

import com.exchange.dto.ProductDto;
import com.exchange.entity.Product;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface ProductMapper {
    
    Product selectById(Long id);
    
    List<ProductDto> selectByMerchantId(Long merchantId);
    
    int insert(Product product);
    
    int update(Product product);
    
    int deleteById(Long id);
}